import 'package:flutter/material.dart';
import 'package:moose_app/ui/values/values.dart';

class ATHUserAvatar extends StatelessWidget {
  final double width;

  final double height;

  final String avatarPath;

  ATHUserAvatar(
      {this.width,
      this.height,
      this.avatarPath = "assets/images/avatar_boy.png"});

  @override
  Widget build(BuildContext context) {
    return ClipRRect(
      borderRadius: BorderRadius.circular(kSize60),
      child: Container(
          color: kColorPrimaryLight,
          child: Image.asset(avatarPath,
              width: width != null ? width : kSize120,
              height: height != null ? height : kSize120,
              fit: BoxFit.cover)),
    );
  }
}
